package cn.bonoon.kernel.events;

import javax.servlet.http.HttpServletRequest;

import org.springframework.context.ApplicationContext;

import cn.bonoon.kernel.support.IOperator;

/**
 * 弹出对话框的事件，包括需要弹出的对话框的必要信息
 * @author jackson
 * @see ReadEvent
 */
public class DialogEvent extends ReadEvent{
	private final String mid;
	public DialogEvent(ApplicationContext applicationContext, String mid, HttpServletRequest request, Object source,IOperator operator) {
		super(applicationContext, request, source, operator);
		this.mid = mid;
	}

	public HttpServletRequest getRequest() {
		return request;
	}

	public String getMid() {
		return mid;
	}

	public String getBasePath() {
		return request.getContextPath();
	}

}
